package com.xkdx.caipiao.presistence.trad;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import com.xkdx.caipiao.module.network.AbsAction;

public class TradAction extends AbsAction {

	String uid, logintoken, lotteryid, issueid, orderpaymoney, ordertime,
			orderitem, devicetype, PlayMethod, betting,id,signcode;

	public TradAction(String uid, String logintoken, String lotteryid,
			String issueid, String ordertime,
			String orderitem,String id,String signcode) {
		this.uid = uid;
		this.logintoken = logintoken;
		this.lotteryid = lotteryid;
		this.issueid = issueid;
		this.ordertime = ordertime;
		this.orderitem = orderitem;
		this.id = id;
		this.signcode = signcode;

	}

	@Override
	public void constructRequest() {
		HashMap<String, String> map = new HashMap<String, String>();
		map.put("uid", uid);
		map.put("logintoken", logintoken);
		map.put("lotteryid", lotteryid);
		map.put("issueid", issueid);
		map.put("devicetype", "2");
		map.put("ordertime", ordertime);
		map.put("orderitem", orderitem);
		map.put("id", id);
		map.put("signcode", signcode);

		String json = constructJson(map);
		Parameter parameter = new Parameter("Trade",
				"LotteryRequest", json);

		List<Parameter> list = new ArrayList<Parameter>();
		list.add(parameter);
		requestData = constructMod(list);

	}
}
